package com.ynet.middleground.riskmanage.bean;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @ClassName ColdChainHistoryBusinessVolumeReq
 * @Description 历史业务量查询请求类
 * @Author zhangyongbin
 * @Date 2020/8/14 15:26
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "历史业务量查询请求类", description = "历史业务量查询请求类")
public class ColdChainHistoryBusinessVolumeReq extends BaseReqObj {
    private static final long serialVersionUID = -2001267649492710344L;

    @ApiModelProperty(value = "货主账号（支持多个用英文,分开）", notes = "货主账号（支持多个用英文,分开）")
    private String userNo;

    @ApiModelProperty(value = "货主名称（支持多个用英文,分开）\n账号和名称二送一，都上送根据名称查询", notes = "货主名称（支持多个用英文,分开）\n账号和名称二送一，都上送根据名称查询")
    private String userName;

    @ApiModelProperty(value = "货种（支持多个用英文,分开）", notes = "货种（支持多个用英文,分开）", required = true)
    @NotEmpty(message = "货种代码不能为空")
    private String types;

    @ApiModelProperty(value = "入库时间段\n格式为：yyyyMMddyyyyMMdd\n如：2017122720180128",
        notes = "入库时间段\n格式为：yyyyMMddyyyyMMdd\n如：2017122720180128", example = "2017122720180128", required = true)
    @Size(max = 16, min = 16)
    @NotEmpty(message = "入库时间段不能为空")
    private String starorendDate;

}
